package triple

import (
	"dubbo.apache.org/dubbo-go/v3/common"
	"dubbo.apache.org/dubbo-go/v3/config"
	"github.com/pkg/errors"
)

func Client(impl common.RPCService) error {
	config.SetConsumerService(impl)
	if err := config.Load(); err != nil {
		return errors.Wrap(err, "rpc connect failed")
	}
	return nil
}
